package com.kjc.demo.basic.designermodel.decorate;

public class TestDecoratorDemo {
	public static void main(String[] args) {
		Person person = new ConceretePerson("张三");
		person.DressClother();
		
		System.out.println("-------------------------------------------------------");
		
		Person dperson = new Decorator(person);
		dperson = new DecoratorHat(dperson);
		dperson = new DecoratorClother(dperson);
		dperson.DressClother();
		
		
	}
}
